from django.conf.urls import url
from rest_framework.routers import DefaultRouter
from goods import views

urlpatterns = [
    url(r'^categories/(?P<pk>\d+)/$', views.CategoriesView.as_view()),
    url(r'^categories/(?P<pk>\d+)/skus/$', views.GoodsView.as_view()),
]

router = DefaultRouter()
router.register('skus/search', views.SKUindexView, base_name='skus_index')

urlpatterns += router.urls